'use strict';

const Service = require('egg').Service;

class ResourceService extends Service {
    //获取资源列表
    async getResource(role_id) {
        return await this.app.mysql.query(`select resource_name,resource_router from resourcelist where power like '%${role_id}%'`)
    }
}

module.exports = ResourceService;
